package action;

import java.util.ArrayList;
import java.util.List;

import entity.Option;

public class FormTags {
	private String name;
	private String password;
	private String descript;
	private boolean yes_no;
	private List<Option> opts=new ArrayList<Option>();
	private List<String> citys= new ArrayList<String>();//可以用数组
	private String city;
	
	public String execute(){
		name="xuri";
		password="1234";
		descript="农民组合";
		yes_no=true;
		opts.add(new Option("beijing", "北京"));
		opts.add(new Option("changsha", "长沙"));
		opts.add(new Option("xupu", "溆浦"));
		citys.add("changsha");
		citys.add("xupu");
		city="xupu";
		return "success";
	}
	
	public String getName() {
		return name;
	}
	public String getPassword() {
		return password;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getDescript() {
		return descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	public boolean isYes_no() {
		return yes_no;
	}

	public void setYes_no(boolean yesNo) {
		yes_no = yesNo;
	}

	public List<Option> getOpts() {
		return opts;
	}

	public List<String> getCitys() {
		return citys;
	}

	public void setOpts(List<Option> opts) {
		this.opts = opts;
	}

	public void setCitys(List<String> citys) {
		this.citys = citys;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
}
